package aybolit.core.objects.model;
// Generated 27.02.2013 9:15:35 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * OperTypes generated by hbm2java
 */
@Entity
@Table(name="oper_types"
    ,catalog="aybolit"
)
public class OperTypes  implements java.io.Serializable {


     private Integer operTypeId;
     private String name;
     private String note;
     private Set<Operators> operatorses = new HashSet<Operators>(0);

    public OperTypes() {
    }

	
    public OperTypes(String name, String note) {
        this.name = name;
        this.note = note;
    }
    public OperTypes(String name, String note, Set<Operators> operatorses) {
       this.name = name;
       this.note = note;
       this.operatorses = operatorses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="oper_type_id", unique=true, nullable=false)
    public Integer getOperTypeId() {
        return this.operTypeId;
    }
    
    public void setOperTypeId(Integer operTypeId) {
        this.operTypeId = operTypeId;
    }
    
    @Column(name="name", nullable=false, length=200)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="note", nullable=false, length=200)
    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="operTypes")
    public Set<Operators> getOperatorses() {
        return this.operatorses;
    }
    
    public void setOperatorses(Set<Operators> operatorses) {
        this.operatorses = operatorses;
    }




}


